package com.feib.stms.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.feib.stms.dao.MailQueueDao;
import com.feib.stms.model.MailQueue;
import com.feib.stms.service.MailQueueService;

@Service("mailQueueService")
public class MailQueueServiceImpl extends BaseServiceImpl implements MailQueueService {

    
	private static final long serialVersionUID = -6478162312004355386L;
	
	@Resource(name="mailQueueDao")
    private MailQueueDao mailQueueDao;

	public MailQueue getUnSendMail() {
		
		return mailQueueDao.findUnSendMail();
	}

	public MailQueue queryByPk(Long mailQueuePk) {
		
		return mailQueueDao.queryByPk(mailQueuePk);
	}

	public int updateMailStatus(MailQueue mailQueue) {
		return mailQueueDao.updateMailStatus(mailQueue);
	} 
    
   
  

}
